<template>
  <div>
    <div class="recommend-title">周末去哪儿</div>
    <ul>
        <li class="item border-bottom" v-for = "item of list" :key="item.id">
                <div class="item-img-wrapper">
                    <img  class="item-img" :src ="item.imgUrl">
                </div>
            <div class="item-info">
                <p class="item-title">{{item.title}}</p>
                <p class="item-desc">{{item.desc}}}</p>
            </div>
        </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  }
  // data () {
  //   return {
  //     RecommendList: [{
  //       id: '001',
  //       imgUrl: 'http://img1.qunarzz.com/sight/p0/1508/a5/4003f9dd7bebf61eccbf64046e26d487.water.jpg_600x390_b06429ee.jpg',
  //       desc: '北京天安门有踏踏大魔王，塌塌大魔王带你看熊猫',
  //       title: '北京天安门'
  //     }, {
  //       id: '002',
  //       imgUrl: 'http://img1.qunarzz.com/sight/p0/1508/89/895a1b7add84f23faca053ce9e3153db.water.jpg_600x390_98e78063.jpg',
  //       desc: '八达岭长城有塌塌大魔王和你看长城',
  //       title: '八达岭长城'
  //     }, {
  //       id: '003',
  //       imgUrl: 'http://img1.qunarzz.com/sight/p0/1501/ab/ab02fceb3fa0a60e.water.jpg_600x390_752f6bfb.jpg',
  //       desc: '圆明园有塌塌大魔王带你看历史',
  //       title: '圆明园'
  //     }]
  //   }
  // }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .recommend-title
    margin-top: .2rem
    line-height: .8rem
    background: #eee
    text-index: .2rem
  .item-img-wrapper
    height: 0
    overflow: hidden
    padding-bottom: 37.09%
    .item-img
      width:100%
  .item-info
    padding: .1rem
    .item-title
        line-height: .54rem
        font-size: .32rem
        ellipsis()
    .item-desc
        line-height: .4rem
        color: gray
        ellipsis()
</style>
